package com.hyq.proxy.dynamicmodel;

import java.lang.reflect.InvocationHandler;

/**
* @ClassName: Client 
* @Description: 客户端
* @author Janus
 */
public class Client {

	public static void main(String[] args) {
		//定义实现类主题
		Subject s=new RealSubject();
		//定义主题代理
		Subject proxy = SubjectDynamicProxy.newProxyInstance(s);
		//代理行为
		proxy.doSomething("我是张三");
	}

}
